package thinkinjava4.ch20_annotations;

import thinkinjava4.atunit.Test;
import thinkinjava4.util.OSExecute;

import java.io.File;

public class AtUnitExample1 {
    public String methodOne() {
        return "This is methodOne";
    }

    public int methodTwo() {
        System.out.println("This is methodTwo");
        return 2;
    }

    @Test
    boolean methodOneTest() {
        return methodOne().equals("This is methodOne");
    }

    @Test
    boolean m2() {
        return methodTwo() == 2;
    }

    @Test
    private boolean m3() {
        return true;
    }

    @Test
    boolean failureTest() {
        return false;
    }

    @Test
    boolean anotherDisappointment() {
        return false;
    }

    public static void main(String[] args) throws Exception {
        //cd out/production/workspace
        //java thinkinjava4.atunit.AtUnit thinkinjava4\ch20_annotations\AtUnitExample1
        OSExecute.command(OSExecute.DEFAULT_DIR, OSExecute.ATUNIT_ANN + "AtUnitExample1");
    }
}
